package com.hp.siminterface.webservice.impl;

import java.util.List;

import com.hp.siminterface.domain.CellularSystemsPartitionIOChassis;
import com.hp.siminterface.persistence.CellularSystemsPartitionIOChassisMapper;
import com.hp.siminterface.webservice.CellularSystemsPartitionIOChassisService;

public class CellularSystemsPartitionIOChassisServiceImpl implements
		CellularSystemsPartitionIOChassisService {

	private CellularSystemsPartitionIOChassisMapper cellularSystemsPartitionIOChassisMapper;

	@Override
	public CellularSystemsPartitionIOChassis[] getCellularSystemsPartitionIOChassisInfo() {
		List<CellularSystemsPartitionIOChassis> cellularSystemsPartitionIOChassises = cellularSystemsPartitionIOChassisMapper
				.selectCellularSystemsPartitionIOChassis();
		CellularSystemsPartitionIOChassis[] cellularSystemsPartitionIOChassisArray = new CellularSystemsPartitionIOChassis[cellularSystemsPartitionIOChassises
				.size()];

		int i = 0;
		for (CellularSystemsPartitionIOChassis cllularSystemsPartitionIOChassis : cellularSystemsPartitionIOChassises) {
			cellularSystemsPartitionIOChassisArray[i] = cllularSystemsPartitionIOChassis;
			i++;
		}
		return cellularSystemsPartitionIOChassisArray;
	}

	public void setCellularSystemsPartitionIOChassisMapper(
			CellularSystemsPartitionIOChassisMapper cellularSystemsPartitionIOChassisMapper) {
		this.cellularSystemsPartitionIOChassisMapper = cellularSystemsPartitionIOChassisMapper;
	}

}
